﻿namespace K9Nano.Updater.Extensions;

public static class StringExtensions
{
    public static IReadOnlyList<string> ToLines(this string text)
    {
        var result = new List<string>();
        var reader = new StringReader(text);
        var line = reader.ReadLine();
        while (line != null)
        {
            result.Add(line);
            line = reader.ReadLine();
        }
        return result;
    }
}
